-- GENERATED SPELL FOR [Vengeful Draenei] --


function spell0_21636(pUnit, Event) --@Bone Wastes Specific - Chain Lightning (single),n/a--
pUnit:FullCastSpellOnTarget(37229,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21636', 0, 1)
end

function Sorts_21636(pUnit, Event)
local choix_sorts_21636 = math.random(0, 0)
if choix_sorts_21636 == 0 then
pUnit:RegisterEvent('spell0_21636', 1, 1)
end
end

function mob21636_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21636', math.random(1500, 3000), 1)
end

function mob21636_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21636_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21636_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21636, 1, 'mob21636_Action')
RegisterUnitEvent(21636, 2, 'mob21636_Leave')
RegisterUnitEvent(21636, 3, 'mob21636_Kill')
RegisterUnitEvent(21636, 4, 'mob21636_Die')
